package hu.mapro.flang.gwt.domain.server.entities;

import hu.mapro.model.LongId;

import java.util.Date;

import javax.persistence.ManyToOne;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJpaEntity
@RooToString
@RooJavaBean
public class Practice implements LongId {

	@ManyToOne
	User user;

	@ManyToOne
	Exercise exercise;
    
    Date timeOfLatestAttempt;

    Double sleepDays;
    
    Integer numberOfAttempts;
    
    Integer numberOfSuccesses;
    
    Integer numberOfErrors;
    
    Boolean blocked;
    
}
